from datetime import datetime
date = datetime(2022,1,1,12,11,13,1900)
print(date.isoformat())
print(date.isoweekday())

today = datetime.now()
result1 = today.strftime("%Y-%m-%d")
print(result1)
result2 = today.strftime("%Y%m%d")
print(result2)

today = datetime.now()
print(f"时间为{today:%Y}年{today:%m}月{today:%d}日")